import React from 'react'
import { withRouter } from 'react-router-dom'
import './index.less'
import { LeftOutline } from 'antd-mobile-icons'

function Pj(props) {
    console.log(props.history.location.state);
    return (
        <div className="pj">
            <div className="top">
                <p onClick={() => {
                    props.history.go(-1)
                }}><LeftOutline /></p>
                <p>评价</p>
                <p></p>
            </div>
            <div className="cont">
                {
                    props.history.location.state.map((item, index) => {
                        return (
                            <div key={index}>
                                <p>
                                    <img src={item.img} />
                                    <span>{item.Name}</span>
                                </p>
                                <p>
                                    {item.cont}
                                </p>
                            </div>
                        )
                    })
                }
            </div>
        </div>
    )
}
export default withRouter(Pj)